package com.lenin.omena.client.test;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.lenin.omena.client.DialogPopup;

public class InnerTestPanel extends Composite {
	
	interface MyUiBinder extends UiBinder<Widget, InnerTestPanel> {
	}

	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
	
	
	//HTMLPanel panel = new HTMLPanel("<div></div>");
	
	@UiField
	Button button;	
	
	public InnerTestPanel() {
		
		initWidget(uiBinder.createAndBindUi(this));
		//initWidget(panel);
		
		//panel.setSize("500px", "500px");
		//panel.add(button);
		
		button.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				// Instantiate the popup and show it.
				System.out.println("button click link");
			}
		});
		
	}

}
